package system.logic;

import system.factory.BaseFactory;
import system.logic.client.ClientBo;
import system.logic.job.Job2ClientBo;
import system.logic.job.JobBo;
import system.logic.server.ServerBo;
import system.logic.var.VarBo;
import system.process.ProcessBo;

public class InitLogic 
{
	public void init()
	{
		initTable();
		initClient();
	}
	
	private void initTable()
	{
		BaseFactory.registerTableCreator(new ProcessBo());
		BaseFactory.registerTableCreator(new VarBo());
		BaseFactory.registerTableCreator(new ClientBo());
		BaseFactory.registerTableCreator(new ServerBo());
		BaseFactory.registerTableCreator(new JobBo());
		BaseFactory.registerTableCreator(new Job2ClientBo());
	}
	
	private void initClient()
	{
	    BaseFactory.registerObject(LogicConst.Client.CLIENT_USERNAME, System.getenv().get("COMPUTERNAME"));
	}

}
